using System;
using System.Collections.Generic;
using System.Linq;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using MonoTouch.CoreGraphics;
using System.Drawing;
using MonoTouch.ObjCRuntime;

namespace ComBrowser
{

	 
	public partial class WebMainView:UIWebView
	{

		public WebMainView (NSCoder coder) : base(coder)	{}
		public WebMainView(IntPtr ptr) : base(ptr) {}

		MainViewController ctrl;
		WebMainViewDelegate webDelegate;
		public void SetController (MainViewController Controller)
		{
			
			this.ctrl = Controller;
		}
		
		/*public override void TouchesBegan (NSSet touches, UIEvent evt)
		{
			NSSet c = evt.AllTouches;
			base.TouchesBegan (touches, evt);
			ctrl.ToggleMenu ();
			Console.WriteLine ("TouchesBegin");
		}
		 
		public override void TouchesEnded (NSSet touches, UIEvent evt)
		{
			base.TouchesEnded (touches, evt);
			ctrl.ToggleMenu ();
			Console.WriteLine ("TouchesEnd" + DateTime.Now.Ticks);
			
		}
		 */
		/*public override UIView HitTest (PointF point, UIEvent uievent)
		{
			/*if (uievent. == UIEventType.Touches)
			{
			
			 NSSet d = uievent.AllTouches;
			
			
				foreach (UITouch touch in uievent.AllTouches)
				{
					if (touch.Phase == UITouchPhase.Began)
					{
			
					}
				}
			}
			 
						ctrl.ToggleMenu ();
			Console.WriteLine ("Hit");
			return base.HitTest (point, uievent);
		}
		 */
		
		
	}
}
